package cn.kzgg.system.mapper;

import cn.kzgg.system.domain.Permission;
import cn.kzgg.basic.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author KZGG
 * @since 2022-06-21
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    /**
     * 权限扫面实现
     * @param permissionSn
     * @return
     */
    Permission loadBySn(String permissionSn);

    /**
     * 拦截器里面设置权限
     * @param id
     * @return
     */
    List<String> loadPermissionsByLogininfoId(Long id);
}
